<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Vue-extend</title>
    <link rel="stylesheet" href="../../../assets/css/bootstrap.min.css">
    <script src="../../../assets/js/vue-2.5.6.js"></script>
</head>

<body>
    <author></author>
    <!-- <div id="author"></div> -->
</body>
<script>
    var authorExtend = Vue.extend({
        template: "<p><a :href='authorUrl'>{{authorName}}</a></p>",
        data: function() {
            return {
                authorName: 'JSPang',
                authorUrl: 'http://www.jspang.com'
            }
        }
    });
    new authorExtend().$mount('author');
    new authorExtend().$mount('#author');
</script>

</html>